﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PropertyExpression.TypedDataBinding.Web.Example.Example1Form" %>

<%@ Register Assembly="PropertyExpression.TypedDataBinding.Web" Namespace="PropertyExpression.TypedDataBinding.Web.WebControls" TagPrefix="tdb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="A001" />
        <tdb:TextBox ID="TextBox1" runat="server" />
    </div>
    <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
    <ul>
        <tdb:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <li>
                    <tdb:Literal ID="Literal1" runat="server" OnTypedInit="Literal1_OnTypedInit" />
                </li>
                <ul>
                    <tdb:Repeater ID="Repeater1" runat="server" OnTypedInit="Repeater1_OnTypedInit">
                        <ItemTemplate>
                            <li>
                                <tdb:Literal ID="Literal2" runat="server"  OnTypedInit="Literal2_OnTypedInit" />
                                <tdb:TextBox ID="TextBox1" runat="server" OnTypedInit="TextBox4_OnTypedInit" OnTextChanged="TextBox2_TextChanged"
                                    AutoPostBack="true" />
                            </li>
                        </ItemTemplate>
                    </tdb:Repeater>
                </ul>
            </ItemTemplate>
        </tdb:Repeater>
    </ul>
        <div>
        <tdb:TextBox ID="TextBox2" runat="server" Text="<%# aBinder.Data.A001 %>" />
    </div>
    </form>
</body>
</html>
